package com.hup.minicontroller.client.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.hup.minicontroller.common.constant.BroadcastConstant;
import com.hup.minicontroller.common.constant.NetConstant;
import com.hup.utils.commons.io.BaseConfig;
import com.hup.utils.swing.model.BaseWindowConfig;
import lombok.Data;

@Data
public class AppConfig implements BaseConfig<AppConfig> {
    public static final int NULL_BUTTON_FLOATER_LOCATION = -1;


    /**
     * 局域网server端口号,可以按需动态修改
     */
    @JSONField(serialize = false)
    private int lanServerPort = NetConstant.LAN_SERVER_PORT;
    /**
     * 局域网配置
     * 用户在界面上输入的ip,用于连接服务端
     */
    private String lanInputIp = "192.168.1.101";
    @JSONField(serialize = false)
    private int lanBroadcastPort = BroadcastConstant.PORT;
    @JSONField(serialize = false)
    private String broadcastIp = BroadcastConstant.IP;

    public BaseWindowConfig mainWindowConfig = new BaseWindowConfig();
    public BaseWindowConfig connectWindowConfig = new BaseWindowConfig();

    /**
     * 平铺投屏图像
     */
    private boolean drawFull = false;

}
